﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Ini;

namespace TwipPlays
{
    public partial class SetTitle : Form
    {
        public SetTitle()
        {
            InitializeComponent();

            // Initialize values
            IniFile ini = new IniFile("irc_parser/config.ini");

            string title = ini.IniReadValue("main", "title");
            this.title_entry.Text = title;
        }

        private void save_clicked(object sender, EventArgs e)
        {

            // Initialize values
            IniFile ini = new IniFile("irc_parser/config.ini");

            ini.IniWriteValue("main", "title", this.title_entry.Text);

            this.Close();

        }

        private void cancel_clicked(object sender, EventArgs e)
        {

            this.Close();

        }

    }
}
